package com.dinnerwithfriends.client;

import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasVerticalAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;

public class MainPage extends HorizontalPanel {

	public static VerticalPanel mainPanel = new VerticalPanel();

	public static VerticalPanel rightPanel = new VerticalPanel();

	public MainPage() {

		RootPanel rootpanel = RootPanel.get();

		rootpanel.setSize("100%", "100%");

		HorizontalPanel hp = new HorizontalPanel();

		hp.setSize("100%", "100%");

		mainPanel.clear();

		mainPanel.setSpacing(10);

		mainPanel.setSize("100%", "100%");

		mainPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);

		mainPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);

		hp.add(mainPanel);

		rightPanel.clear();

		hp.add(rightPanel);

		rootpanel.add(hp);
	}
}
